package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BizDataZcpgMapper;
import com.ruoyi.system.domain.BizDataZcpg;
import com.ruoyi.system.service.IBizDataZcpgService;
import com.ruoyi.common.core.text.Convert;

/**
 * 资产评估Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-02
 */
@Service
public class BizDataZcpgServiceImpl implements IBizDataZcpgService 
{
    @Autowired
    private BizDataZcpgMapper bizDataZcpgMapper;

    /**
     * 查询资产评估
     * 
     * @param id 资产评估主键
     * @return 资产评估
     */
    @Override
    public BizDataZcpg selectBizDataZcpgById(Long id)
    {
        return bizDataZcpgMapper.selectBizDataZcpgById(id);
    }

    /**
     * 查询资产评估列表
     * 
     * @param bizDataZcpg 资产评估
     * @return 资产评估
     */
    @Override
    public List<BizDataZcpg> selectBizDataZcpgList(BizDataZcpg bizDataZcpg)
    {
        return bizDataZcpgMapper.selectBizDataZcpgList(bizDataZcpg);
    }

    /**
     * 新增资产评估
     * 
     * @param bizDataZcpg 资产评估
     * @return 结果
     */
    @Override
    public int insertBizDataZcpg(BizDataZcpg bizDataZcpg)
    {
        bizDataZcpg.setCreateTime(DateUtils.getNowDate());
        return bizDataZcpgMapper.insertBizDataZcpg(bizDataZcpg);
    }

    /**
     * 修改资产评估
     * 
     * @param bizDataZcpg 资产评估
     * @return 结果
     */
    @Override
    public int updateBizDataZcpg(BizDataZcpg bizDataZcpg)
    {
        return bizDataZcpgMapper.updateBizDataZcpg(bizDataZcpg);
    }

    /**
     * 批量删除资产评估
     * 
     * @param ids 需要删除的资产评估主键
     * @return 结果
     */
    @Override
    public int deleteBizDataZcpgByIds(String ids)
    {
        return bizDataZcpgMapper.deleteBizDataZcpgByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除资产评估信息
     * 
     * @param id 资产评估主键
     * @return 结果
     */
    @Override
    public int deleteBizDataZcpgById(Long id)
    {
        return bizDataZcpgMapper.deleteBizDataZcpgById(id);
    }
}
